package cn.stylefeng.guns.modular.comm.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 资金历史
 * </p>
 *
 * @author
 * @since 2020-05-10
 */
@Data
@TableName("thesis_money_history")
public class MoneyHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "seq_id", type = IdType.AUTO)
    private Integer seqId;

    /**
     * 1 充值 2 支付 3 收益
     */
    @TableField("type")
    private String type;

    /**
     * open_id
     */
    @TableField("open_id")
    private String openId;
    @TableField("create_time")
    private Date createTime;

    /**
     * 余额
     */
    @TableField("money")
    private BigDecimal money;


    public Integer getSeqId() {
        return seqId;
    }

    public void setSeqId(Integer seqId) {
        this.seqId = seqId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "MoneyHistory{" +
                "seqId=" + seqId +
                ", type=" + type +
                ", openId=" + openId +
                ", money=" + money +
                "}";
    }
}
